{%extends "base.html"%}
{%block body%}
<h1>tinyMCE plugin</h1>
<textarea id="text1" name="text1"></textarea> 

<script type="text/javascript">
$(document).ready(function(){
	
	tinyMCE.init({
	    theme : "advanced",
	    mode : "none",
	    elements : "text1",
	    plugins : "picasa_image",
	    theme_advanced_buttons1 : "code,picasa_image",
	    theme_advanced_buttons2 : "",
	    theme_advanced_toolbar_location : "top",
	    width : "640",
	    height: "250",
	    setup : function(ed) {
	    	ed.onChange.add(function(ed) {
	          tinyMCE.triggerSave();
	 		 });  	
	    }
	});

	tinyMCE.execCommand('mceAddControl', false, 'text1');
});
</script>

{%endblock%}
